package com.ruoyi.contract.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.contract.mapper.ContractSigningPartyConnectionMapper;
import com.ruoyi.contract.domain.ContractSigningPartyConnection;
import com.ruoyi.contract.service.IContractSigningPartyConnectionService;

/**
 * 合同签约方连Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class ContractSigningPartyConnectionServiceImpl implements IContractSigningPartyConnectionService 
{
    @Autowired
    private ContractSigningPartyConnectionMapper contractSigningPartyConnectionMapper;

    /**
     * 查询合同签约方连
     * 
     * @param contractSigningPartyConnectionId 合同签约方连主键
     * @return 合同签约方连
     */
    @Override
    public ContractSigningPartyConnection selectContractSigningPartyConnectionByContractSigningPartyConnectionId(Long contractSigningPartyConnectionId)
    {
        return contractSigningPartyConnectionMapper.selectContractSigningPartyConnectionByContractSigningPartyConnectionId(contractSigningPartyConnectionId);
    }

    /**
     * 查询合同签约方连列表
     * 
     * @param contractSigningPartyConnection 合同签约方连
     * @return 合同签约方连
     */
    @Override
    public List<ContractSigningPartyConnection> selectContractSigningPartyConnectionList(ContractSigningPartyConnection contractSigningPartyConnection)
    {
        return contractSigningPartyConnectionMapper.selectContractSigningPartyConnectionList(contractSigningPartyConnection);
    }

    /**
     * 新增合同签约方连
     * 
     * @param contractSigningPartyConnection 合同签约方连
     * @return 结果
     */
    @Override
    public int insertContractSigningPartyConnection(ContractSigningPartyConnection contractSigningPartyConnection)
    {
        return contractSigningPartyConnectionMapper.insertContractSigningPartyConnection(contractSigningPartyConnection);
    }

    /**
     * 修改合同签约方连
     * 
     * @param contractSigningPartyConnection 合同签约方连
     * @return 结果
     */
    @Override
    public int updateContractSigningPartyConnection(ContractSigningPartyConnection contractSigningPartyConnection)
    {
        return contractSigningPartyConnectionMapper.updateContractSigningPartyConnection(contractSigningPartyConnection);
    }

    /**
     * 批量删除合同签约方连
     * 
     * @param contractSigningPartyConnectionIds 需要删除的合同签约方连主键
     * @return 结果
     */
    @Override
    public int deleteContractSigningPartyConnectionByContractSigningPartyConnectionIds(Long[] contractSigningPartyConnectionIds)
    {
        return contractSigningPartyConnectionMapper.deleteContractSigningPartyConnectionByContractSigningPartyConnectionIds(contractSigningPartyConnectionIds);
    }

    /**
     * 删除合同签约方连信息
     * 
     * @param contractSigningPartyConnectionId 合同签约方连主键
     * @return 结果
     */
    @Override
    public int deleteContractSigningPartyConnectionByContractSigningPartyConnectionId(Long contractSigningPartyConnectionId)
    {
        return contractSigningPartyConnectionMapper.deleteContractSigningPartyConnectionByContractSigningPartyConnectionId(contractSigningPartyConnectionId);
    }
}
